import request from '@/utils/request'

// 查询护理项目列表
export function listServe(query) {
  return request({
    url: '/nursing/serve/list',
    method: 'get',
    params: query
  })
}

// 查询护理项目详细
export function getServe(id) {
  return request({
    url: '/nursing/serve/' + id,
    method: 'get'
  })
}

// 新增护理项目
export function addServe(data) {
  return request({
    url: '/nursing/serve',
    method: 'post',
    data: data
  })
}

// 修改护理项目
export function updateServe(data) {
  return request({
    url: '/nursing/serve',
    method: 'put',
    data: data
  })
}

// 删除护理项目
export function delServe(id) {
  return request({
    url: '/nursing/serve/' + id,
    method: 'delete'
  })
}
